package smecta.client.print.util;

public class OSUtil {
    public static String getDesktopPath() {
        String userHome = System.getProperty("user.home");
        String os = System.getProperty("os.name").toLowerCase();
        if (os.contains("win")) {
            // Windows系统
            return userHome + "\\Desktop";
        } else if (os.contains("mac")) {
            // macOS系统
            return userHome + "/Desktop";
        } else {
            // Linux或其他系统
            return userHome + "/Desktop";
        }
    }
}
